import os

directory = input('请输入文件夹：')
filename = input('请输入文件名：')

paths = os.walk(directory)
for root,dirs,files in paths:
    if filename in files:
        print('Yes')
        break
    else:
        print('No')